﻿using QG.FrontDesk.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace QG.FrontDesk.DAL.IRepository
{
    public interface IVerificationCodeRepository
    {
        /// <summary>
        /// 新增验证码数据
        /// </summary>
        /// <param name="verificationCode"></param>
        /// <returns></returns>
        int AddCode(VerificationCode verificationCode);

        /// <summary>
        /// 得到有效验证码
        /// </summary>
        /// <param name="verificationCode"></param>
        /// <returns></returns>
        string GetCode(VerificationCode verificationCode);
        /// <summary>
        /// 添加验证码
        /// </summary>
        /// <param name="verificationCode"></param>
        /// <returns></returns>
        int AddVerificationCode(VerificationCode verificationCode);

        /// <summary>
        /// 查询验证码
        /// </summary>
        /// <param name="verificationCode"></param>
        /// <returns></returns>
        int QueryVerificationCode(VerificationCode verificationCode);

    }
}


